#include "gifimagedata.h"

namespace WingGif {

GifImageData::GifImageData(QIODevice *stream, QObject *parent)
    : QObject(parent) {
  stream->read(&_lzwMinimumCodeSize, 1);
  char len;
  stream->read(&len, 1);
  _compressedData = stream->read(len);
}

char GifImageData::lzwMinimumCodeSize() { return _lzwMinimumCodeSize; }

void GifImageData::setLzwMinimumCodeSize(char value) {
  _lzwMinimumCodeSize = value;
}

QByteArray GifImageData::compressedData() { return _compressedData; }

void GifImageData::setCompressedData(QByteArray &value) {
  _compressedData = value;
}

} // namespace WingGif
